package com.cip.email.picasa.client.managed.ui;

import com.cip.email.picasa.client.managed.request.ConfigProxy;
import com.google.gwt.requestfactory.ui.client.ProxyRenderer;

public class ConfigProxyRenderer extends ProxyRenderer<ConfigProxy> {

    private static com.cip.email.picasa.client.managed.ui.ConfigProxyRenderer INSTANCE;

    protected ConfigProxyRenderer() {
        super(new String[] { "gmailAccount" });
    }

    public static com.cip.email.picasa.client.managed.ui.ConfigProxyRenderer instance() {
        if (INSTANCE == null) {
            INSTANCE = new ConfigProxyRenderer();
        }
        return INSTANCE;
    }

    @Override
	public String render(ConfigProxy object) {
        if (object == null) {
            return "";
        }
        return " (" + object.getId() + ")";
    }
}
